<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>数据库操作</title>
    <style>
        h1{
            color:red;
        }
        form{
            display: grid;
            grid-template-columns: auto;
            gap: 10px;
        }
        textarea{
            min-height: 100px;
            padding: 8px;
            line-height: 1.8;
        }
        button{
            width: 150px;
            padding: 8px;
        }
        .discription{
            color: #666;
        }
    </style>
</head>
<body>
<h1>命令模式执行数据库操作</h1>

<form action='exe.php' method='post'>
    <div class="discription">可一次执行多条语句，或执行选择的语句~</div>
    <textarea name='sql'>
use db;
show tables;
desc chengyu;
select * from chengyu limit 2;</textarea>
    <button onclick='return check()'>执行 Execute</button>
</form>
</body>
</html>
